package com.turing.data.scripts.contract.transfer

import com.turing.data.vo.out.review.DependParamsVO
import com.turing.data.vo.out.review.TaskElementVO


class OperateMethod1_30172_10_transfer {

    static List< TaskElementVO.DrawResultVO > doConvert(List< TaskElementVO.DrawResultVO > resultVOs, DependParamsVO dependParams){

        for (drawResultVO in resultVOs) {
                def childTaskSn = drawResultVO.childTaskSn
                if(null == childTaskSn || childTaskSn == ""){
                    continue
                }
            String modelValue = drawResultVO.text
            String openStyle1 = /.*开放式.*/
            String openStyle2 = /.*开放.*/
            String closeStyle = /.*封闭式.*/

            if (modelValue =~ openStyle1 || modelValue =~ openStyle2) {
                drawResultVO.businessValue = "开放式"
                drawResultVO.type = 1
            }else if(modelValue =~ closeStyle){
                drawResultVO.businessValue = "封闭式"
                drawResultVO.type = 1
            }
        }
        return resultVOs

    }

}
